from django.contrib import admin
from opslog.models import PayCallBackLog

# Register your models here.

class PayCallBackLogAdmin(admin.ModelAdmin):

	list_display = ['remote_addr','request_method','path_info','request_body','query_string','post_time']
	list_per_page = 60
	#帅选器
	list_filter =['remote_addr','request_method','path_info','request_body','post_time'] #过滤器，必须是列表或者元组
	#search_fields =('remote_addr','request_method','path_info','request_body','post_time') #搜索字段,必须是表里存在的列
	date_hierarchy = 'post_time'   #必须是时间
admin.site.register(PayCallBackLog,PayCallBackLogAdmin)